﻿//
// AlbumArt.cs: Represents a piece of album art for an album.
//
// Copyright 2010 Michael Goethe
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace S9PalCommon.ArtistLibrary
{
    /// <summary>
    /// Represents a piece of album art for an album.
    /// </summary>
    [Serializable]
    public class AlbumArt
    {
        #region Fields

        String hashValue = null;
        bool syncPhoto = false;
        bool userAddedPhoto = false;

        #endregion

        #region Constructors

        /// <summary>
        /// Constructs an album art object with a hash value.
        /// </summary>
        /// <param name="fileHashValue">Hash value used to identify the album art.</param>
        public AlbumArt(String fileHashValue)
        {
            HashValue = fileHashValue;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets the hash value used to identify the album art.
        /// </summary>
        public String HashValue
        {
            get
            {
                return hashValue;
            }
            set
            {
                hashValue = value;
            }
        }

        /// <summary>
        /// Gets or sets whether the photo is to be synced.
        /// </summary>
        public bool SyncPhoto
        {
            get
            {
                return syncPhoto;
            }
            set
            {
                syncPhoto = value;
            }
        }

        /// <summary>
        /// Gets or sets whether the photo was added by the user.
        /// </summary>
        public bool UserAddedPhoto
        {
            get
            {
                return userAddedPhoto;
            }
            set
            {
                userAddedPhoto = value;
            }
        }

        #endregion
    }
}
